<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        {:build_heading(null,FALSE)}
        <ul class="nav nav-tabs" data-field="type">
            <li class="{:$Think.get.type === null ? 'active' : ''}"><a href="#t-all" data-value=""
                                                                         data-toggle="tab">{:__('All')}</a></li>
            {foreach name="type_arr" item="vo"}
            <li class="{:$Think.get.type === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}"
                                                                                 data-toggle="tab">{$vo}</a></li>
            {/foreach}
        </ul>
    </div>
    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
                    <div id="toolbar" class="toolbar">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" title="{:__('Refresh')}" ><i class="fa fa-refresh"></i> </a>
                        <a href="javascript:;" class="btn btn-success btn-add {:$auth->check('work/work_template/add')?'':'hide'}" title="{:__('Add')}" ><i class="fa fa-plus"></i> {:__('Add')}</a>
                        <a href="javascript:;" class="btn btn-success btn-import {:$auth->check('work/work_template/import')?'':'hide'}" title="导入" >导入</a>
                        <a href="/uploads/20231031/46383dc70a8231c63b6950be075b699b.xlsx" class="btn btn-success {:$auth->check('work/work_template/import')?'':'hide'}" title="导入模板" >下载模板</a>

                        <a href="javascript:;"  class="btn batch-time_temp btn-success btn-disabled disabled {:$auth->check('work/work_template/select_time_temp')?'':'hide'}" title="批量选择时间模版" >批量选择时间模版</a>

                    </div>
                    <table id="table" class="table table-striped table-bordered table-hover table-nowrap"
                           data-operate-edit="{:$auth->check('work/work_template/edit')}"
                           data-operate-del="{:$auth->check('work/work_template/del')}"
                           data-operate-select_time_temp="{:$auth->check('work/work_template/select_time_temp')}"
                           width="100%">
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
